
package com.googlecode.cswish.util;

/**
 * @author Jerry.Feng Date: 2004 16:44:29
 * @version $id: $
 */
public class FrameConstant {
	// the plug-in name
	public static final String NAME = "cswish";
	
    // session, security
    public static final String SESSION_USER_INFO = "fr_session_user_info";
    
    public static final String SESSION_LAST_VISIT_INFO = "fr_session_last_visit_info";
    
    public static final String SESSION_OLD_OBJ = "fr_session_old_obj";
    
    public static final String SESSION_CHECK_OBJ = "fr_session_check_obj";
    
    public static final String SEC_RUNTIME_CHECK = "fr_runtime_check";
    
    public static final String SEC_CHECK_FIELD = "fr_sec_field";
    
    /** the ActionResult key stored in ValueStack */
    public static final String ACTION_RESULT = "fr_action_result";
    
    /** prepare to commit a method, such as, prepare to search, prepare to add */
    public static final String ACTION_PREPARE = "_";
    
    ////////////////////////////// parameter //////////////////////////////////
    public static final String METHOD_SLASH = ".";	// the struts default implement is '!'
    
    public static final String PARAM_SKIP_RECORD = "_skipRecord";	// skip record current page request
    
    public static final String PARAM_PROCTED_NAME = "___cswish___";
    
    /** the container that the request comes from */
    public static final String PARAM_CONTAINER = "_container";
    
    /** the result code that page will forward to */
    public static final String PARAM_RESULTCODE = "_resultCode";
    public static final String PARAM_NO_RESULT = "$noResult";
    
    /** the model type */
    public static final String PARAM_GENERIC_TYPE = "_type";
    
    /** the page template to generate the PageElements object */
    public static final String PARAM_TEMPLATE = "_tpl";
    
    public static final String DEFAULT_PACKAGE = "cswish-default";
    
    ///////////////////////////// ValueStack //////////////////////////////////
    public static final String STACK_LOCATION = "location";
    public static final String STACK_PAGEELEMENTS = "ps";
    public static final String STACK_FUNCTION = "fn";
    public static final String STACK_VALIDATORS = "_validators";

    ///////////////////////////////////////////////////////////////////////////
    // TODO: 'security' package is using it
	public static final String FORM_ACTION = "temp";
}